<?php /* Smarty version Smarty 3.1.4, created on 2012-05-04 13:26:50
         compiled from ".\templates\product\addproduct.tpl" */ ?>
<?php /*%%SmartyHeaderCode:318054fa3d91ae84a66-93951385%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '20138c97c6b3dbb34fd66819420d043f4087746f' => 
    array (
      0 => '.\\templates\\product\\addproduct.tpl',
      1 => 1334677399,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '318054fa3d91ae84a66-93951385',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'title' => 0,
    'product_arr' => 0,
    'objeditorFCK' => 0,
    'cat_arr' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty 3.1.4',
  'unifunc' => 'content_4fa3d91b0de8f',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fa3d91b0de8f')) {function content_4fa3d91b0de8f($_smarty_tpl) {?> <link rel="stylesheet" media="screen" type="text/css" href="jquery-ui.css" />
<script type="text/javascript">
  $(function() {
                $( "#Start_date" ).datepicker();
		
                 $( "#Start_date" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
          });

$(function() {
                $( "#End_date" ).datepicker();
		
                 $( "#End_date" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
          });
  </script>


 


<div id="page-heading">
	<h1><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</h1>
         <br>
         <a onclick="loadPage('product/index')" href="javascript: void(0);">Back to product list</a>
</div>
<table border="0" width="80%" cellpadding="0" cellspacing="0" id="product-table">
	<tr>

        <th colspan="2" align="left" class="table-header-repeat line-left"><img src="images/icons/add.png" />Add New</th>
	</tr>
        <tr>
		<td width="20%">Pet Code</td>
		<td width="60%"><input onblur="checkitemcode(this.value)" type="text" name="item_code" id="item_code" value="" class="inp-form" style="width: 500px;" /></td>
	</tr>
	<tr>
		<td width="20%">Pet Name</td>
		<td width="60%"><input type="text" name="product_title" id="product_title" value="" class="inp-form" style="width: 500px;" /></td>
	</tr>
	<tr>
		<td>Pet Description (short)</td>
		<td><?php echo $_smarty_tpl->tpl_vars['objeditorFCK']->value->editorfck("productdesc_en",($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_dsc_en']),"98%",200);?>
</td>
	</tr>
        <tr>
		<td>Pet Description (detail)</td>
		<td><?php echo $_smarty_tpl->tpl_vars['objeditorFCK']->value->editorfck("productdesc_detail",($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_dsc_en']),"98%",200);?>
</td>
	</tr>

	<tr>
		<td width="20%">Price</td>
		<td width="60%"><input type="text" name="product_price_lkr" id="product_price_lkr" value="" class="inp-form" style="width: 100px;" /></td>
	</tr>
       
        
        <tr>
		<td width="20%">Start Date</td>
                <td width="60%"><input type="text" name="product_price_lkr" id="Start_date" value="" class="inp-form" style="width: 100px;"  /></td>
	</tr>
        
         <tr>
		<td width="20%">End Date</td>
                <td width="60%"><input type="text" name="product_price_lkr" id="End_date" value="" class="inp-form" style="width: 100px;"  /></td>
	</tr>
        
        
       
	<tr>
		<td width="20%"> Number of pets</td>
		<td width="60%"><input type="text" name="product_qty" id="product_qty" value="" class="inp-form" style="width: 100px;" /></td>
	</tr>
	<tr>
		<td>Category</td>
		<td><select name="category" id="category" onchange="getSubCat(this.id)">
		<option value="">Select Category</option>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['cat_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
		<option value="<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['cat_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['cat_desc'];?>
</option>
		<?php endfor; endif; ?>
		</select>
		</td>
	</tr>
	<tr>
		<td>Sub Category</td>
		<td>
			<div id="subcat_loader">
				<select name="subcat" id="subcat">
				<option value="">Sub Category</option>				
				</select>
			</div></td>
	</tr>	
	<tr>
		<td>Status</td>
		<td><select name="cmbStatus" id="cmbStatus">
		<option value="">Select Status</option>
		<option value="1">Show</option>
		<option value="0">Hide</option>
		</select>
		</td>
	</tr>
	<tr>
	<td>&nbsp;</td>
	<td><div class="edit-icoset"><a href="javascript: void(0);" onclick="saveProduct();"><img src="images/icons/save-2.gif" />Save</a></td>
	</tr>
</table><?php }} ?>